import io.reactivex.Observable;

public class C50 {
    public static void main(String[] args) {
        Observable.just("Alpha", "Beta", "Gamma", "Delta", "Epsilon")
                  .doOnSubscribe(d -> System.out.println("Subscribing!"))
                  .doOnDispose(() -> System.out.println("Disposing!")) //没有显示?
                  .subscribe(i -> System.out.println("RECEIVED: " + i));
    }
}
//EOP
